package com.tarena.day050;

public class LongTimeDemo {
  public static void main(String[] args) {
    long now = System.currentTimeMillis();
    System.out.println(now);
    long year = now/1000/60/60/24/365+1970;
    System.out.println(year);//2011
    long max = 0x7fffffffffffffffL;
    long years = max/1000/60/60/24/365 + 1970;
    System.out.println(years);
  }

}
